package cook

import modal.MeasuringUnit

class Ingredient {

	
	MeasuringUnit measuringUnit
	String name
	BigDecimal cost
	
    static constraints = {
		name nullable:false
		measuringUnit nullable:false
		cost min:0.0,nullable:false
    }
	
	String toString(){
		return name+" ("+measuringUnit.toString()+")"
	}
}
